package cn.tedu._07springaop.egaop;

import cn.tedu._07springaop.aop.CalculatorImpl;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestCarService {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu._07springaop");
        CarServiceImpl bean = context.getBean(CarServiceImpl.class);
        bean.addCart("BMW");
    }
}